import requests,json
from bs4 import BeautifulSoup
# url = "http://www.cntour.cn/"
# str = requests.get(url)
# print(str.text)
# def get_translate_date(word=None):
#     url = "http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule"
#     FromData = From_data={'i':word,'from':'zh-CHS','to':'en','smartresult':'dict','client':'fanyideskweb','salt':'15477056211258','sign':'b3589f32c38bc9e3876a570b8a992604','ts':'1547705621125','bv':'b33a2f3f9d09bde064c9275bcb33d94e','doctype':'json','version':'2.1','keyfrom':'fanyi.web','action':'FY_BY_REALTIME','typoResult':'false'}
#     response = requests.post(url, data=FromData)
#     content =json.loads(response.text)
#     print(content)
#
url = 'http://www.cntour.cn'
strhtml = requests.get(url)
soup = BeautifulSoup(strhtml.text, 'lxml')
data = soup.select('#main>div>div.mtop.firstMod.clearfix>div.centerBox>ul.newsList>li>a')
print(data)
